package com.budwk.app.sqfw.enums;

import lombok.Getter;

/**
 * 大营路excel表格类型
 */
@Getter
public enum DaYingLuExcelType {

    THREE_DETAILED(1, "安全隐患“三清单”"),
    INSPECTION_ON_PATROL(2, "消防安全巡查检查台账"),
    THREE_DAN_ONE_SITE(3, "“三合一”场所（含沿街门店）台账"),
    GREAT_RISK_HIDDEN(4, "消防安全重大风险隐患专项排查整治进度统计表"),
    CATERING_INDUSTRY(5, "餐饮行业使用燃气、燃料排查情况汇总表"),
    SMALL_BUSINESS_STANDING_BOOK(6, "小型生产台账"),
    GAS_SAFETY_INS_STATISTICS_WEEKLY_REPORT(7, "燃气安全排查情况统计周报"),
    NIGHT_STALL_GAS_STANDING_BOOK(8, "夜摊燃气使用存储情况台账"),
    URBAN_GAS_STANDING_BOOK(9, "城镇燃气餐饮用户台账"),
    SAFETY_RISK_REC_STANDING_BOOK(10, "安全风险隐患排查台账"),
    KEY_LOCATIONS_STANDING_BOOK(11, "重点场所台账"),
    PUBLIC_SECURITY_STANDING_BOOK(12, "社会治安重点风险场所台账"),
    PUBLIC_SECURITY_STANDING_PDF(13, "PDF社会治安重点风险场所集合");

    private Integer code;
    private String name;

    DaYingLuExcelType(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    /**
     * 通过code获取登录客户端类型
     *
     * @param code
     * @return
     */
    public static String getName(Integer code) {
        for (DaYingLuExcelType o : DaYingLuExcelType.values()) {
            if (o.getCode() == code) {
                return o.getName();
            }
        }
        return null;
    }
}
